﻿#region

using System.Drawing;

#endregion

namespace Tank90
{
    public abstract class Element
    {
        public int x { get; set; }
        public int y { get; set; }
        public Image dirImage { get; set; }

        public abstract void Drawing(Graphics graphics);


        public virtual Rectangle GetRectangle()
        {
            if (dirImage != null)
            {
                return new Rectangle(x, y, 37, 37);
            }


            return new Rectangle(1000, 1000, 0, 0);
        }

        public virtual void Death()
        {
            dirImage = null;
        }
    }
}